package com.ruoyi.pcwl.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.math.BigDecimal;
import java.util.Date;
import com.ruoyi.pcwl.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * 景区信息表
 */

@ApiModel("景区信息表")
public class ScenicSpot implements Serializable {


	/**
	 * 景区id
	 */

	@ApiModelProperty("景区id")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long id;

	/**
	 * 景区名称
	 */

	@ApiModelProperty("景区名称")
	private String scenicSpotName;

	/**
	 * 景区环境
	 */

	@ApiModelProperty("景区环境")
	private String scenicSpotEnv;

	/**
	 * 景区详情
	 */

	@ApiModelProperty("景区详情")
	private String scenicSpotDetails;

	/**
	 * 分类ID
	 */

	@ApiModelProperty("分类ID")
	private Long categoryId;

	/**
	 * 分类名称
	 */

	@ApiModelProperty("分类名称")
	private String categoryName;

	/**
	 * 标签
	 */

	@ApiModelProperty("标签")
	private String tags;

	/**
	 * 热度
	 */

	@ApiModelProperty("热度")
	private Integer hot;

	/**
	 * 评分
	 */

	@ApiModelProperty("评分")
	private BigDecimal score;

	/**
	 * 开放时间
	 */

	@ApiModelProperty("开放时间")
	private String businessTime;

	/**
	 * 景区地址
	 */

	@ApiModelProperty("景区地址")
	private String address;

	/**
	 * 纬度
	 */

	@ApiModelProperty("纬度")
	private BigDecimal latitude;

	/**
	 * 经度
	 */

	@ApiModelProperty("经度")
	private BigDecimal longitude;

	/**
	 * 门票
	 */

	@ApiModelProperty("门票")
	private BigDecimal ticket;

	/**
	 * 上传人
	 */

	@ApiModelProperty("上传人")
	private String username;

	/**
	 * 创建时间
	 */

	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createDate;

	/**
	 * 修改时间
	 */

	@ApiModelProperty("修改时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date changeDate;

	/**
	 * 状态,1:正常，0:不展示
	 */

	@ApiModelProperty("状态,1:正常，0:不展示")
	private String status;

	/**
	 * 备注
	 */

	@ApiModelProperty("备注")
	private String remark;

	/**
	 * 购票跳转地址
	 */

	@ApiModelProperty("购票跳转地址")
	private String url;

	/**
	 * 封面图地址
	 */

	@ApiModelProperty("封面图地址")
	private String pic;

	/**
	 * 文件ID
	 */

	@ApiModelProperty("文件ID")
	private Long mediaFileId;


	public void setId(Long id){
		this.id = id;
	}

	public Long getId(){
		return this.id;
	}

	public void setScenicSpotName(String scenicSpotName){
		this.scenicSpotName = scenicSpotName;
	}

	public String getScenicSpotName(){
		return this.scenicSpotName;
	}

	public void setScenicSpotEnv(String scenicSpotEnv){
		this.scenicSpotEnv = scenicSpotEnv;
	}

	public String getScenicSpotEnv(){
		return this.scenicSpotEnv;
	}

	public void setScenicSpotDetails(String scenicSpotDetails){
		this.scenicSpotDetails = scenicSpotDetails;
	}

	public String getScenicSpotDetails(){
		return this.scenicSpotDetails;
	}

	public void setCategoryId(Long categoryId){
		this.categoryId = categoryId;
	}

	public Long getCategoryId(){
		return this.categoryId;
	}

	public void setCategoryName(String categoryName){
		this.categoryName = categoryName;
	}

	public String getCategoryName(){
		return this.categoryName;
	}

	public void setTags(String tags){
		this.tags = tags;
	}

	public String getTags(){
		return this.tags;
	}

	public void setHot(Integer hot){
		this.hot = hot;
	}

	public Integer getHot(){
		return this.hot;
	}

	public void setScore(BigDecimal score){
		this.score = score;
	}

	public BigDecimal getScore(){
		return this.score;
	}

	public void setBusinessTime(String businessTime){
		this.businessTime = businessTime;
	}

	public String getBusinessTime(){
		return this.businessTime;
	}

	public void setAddress(String address){
		this.address = address;
	}

	public String getAddress(){
		return this.address;
	}

	public void setLatitude(BigDecimal latitude){
		this.latitude = latitude;
	}

	public BigDecimal getLatitude(){
		return this.latitude;
	}

	public void setLongitude(BigDecimal longitude){
		this.longitude = longitude;
	}

	public BigDecimal getLongitude(){
		return this.longitude;
	}

	public void setTicket(BigDecimal ticket){
		this.ticket = ticket;
	}

	public BigDecimal getTicket(){
		return this.ticket;
	}

	public void setUsername(String username){
		this.username = username;
	}

	public String getUsername(){
		return this.username;
	}

	public void setCreateDate(Date createDate){
		this.createDate = createDate;
	}

	public Date getCreateDate(){
		return this.createDate;
	}

	public void setChangeDate(Date changeDate){
		this.changeDate = changeDate;
	}

	public Date getChangeDate(){
		return this.changeDate;
	}

	public void setStatus(String status){
		this.status = status;
	}

	public String getStatus(){
		return this.status;
	}

	public void setRemark(String remark){
		this.remark = remark;
	}

	public String getRemark(){
		return this.remark;
	}

	public void setUrl(String url){
		this.url = url;
	}

	public String getUrl(){
		return this.url;
	}

	public void setPic(String pic){
		this.pic = pic;
	}

	public String getPic(){
		return this.pic;
	}

	public void setMediaFileId(Long mediaFileId){
		this.mediaFileId = mediaFileId;
	}

	public Long getMediaFileId(){
		return this.mediaFileId;
	}

	@Override
	public String toString (){
		return "景区id:"+(id == null ? "空" : id)+"，景区名称:"+(scenicSpotName == null ? "空" : scenicSpotName)+"，景区环境:"+(scenicSpotEnv == null ? "空" : scenicSpotEnv)+"，景区详情:"+(scenicSpotDetails == null ? "空" : scenicSpotDetails)+"，分类ID:"+(categoryId == null ? "空" : categoryId)+"，分类名称:"+(categoryName == null ? "空" : categoryName)+"，标签:"+(tags == null ? "空" : tags)+"，热度:"+(hot == null ? "空" : hot)+"，评分:"+(score == null ? "空" : score)+"，开放时间:"+(businessTime == null ? "空" : businessTime)+"，景区地址:"+(address == null ? "空" : address)+"，纬度:"+(latitude == null ? "空" : latitude)+"，经度:"+(longitude == null ? "空" : longitude)+"，门票:"+(ticket == null ? "空" : ticket)+"，上传人:"+(username == null ? "空" : username)+"，创建时间:"+(createDate == null ? "空" : DateUtil.formatDateTime2String(createDate))+"，修改时间:"+(changeDate == null ? "空" : DateUtil.formatDateTime2String(changeDate))+"，状态,1:正常，0:不展示:"+(status == null ? "空" : status)+"，备注:"+(remark == null ? "空" : remark)+"，购票跳转地址:"+(url == null ? "空" : url)+"，封面图地址:"+(pic == null ? "空" : pic)+"，文件ID:"+(mediaFileId == null ? "空" : mediaFileId);
	}
}
